//
//  acquisition Device.m
//  One Construction
//
//  Created by apple on 2019/9/4.
//  Copyright © 2019 apple. All rights reserved.
//

#import "acquisition Device.h"

@implementation acquisition_Device

+(void)setDevice{
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
    // app名称
    NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];

    // app版本
    NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
    // app build版本
    NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];
    

    //手机别名： 用户定义的名称
    NSString* userPhoneName = [[UIDevice currentDevice] name];
    //设备名称
    NSString* deviceName = [[UIDevice currentDevice] systemName];

    //手机系统版本
    NSString* phoneVersion = [[UIDevice currentDevice] systemVersion];
    //手机型号
    NSString* phoneModel = [[UIDevice currentDevice] model];
    //地方型号  （国际化区域名称）
    NSString* localPhoneModel = [[UIDevice currentDevice] localizedModel];
   
    NSDictionary *infoDictionary1 = [[NSBundle mainBundle] infoDictionary];
    // 当前应用名称
    NSString *appCurName = [infoDictionary1 objectForKey:@"CFBundleDisplayName"];
    
    // 当前应用软件版本  比如：1.0.1
    NSString *appCurVersion = [infoDictionary1 objectForKey:@"CFBundleShortVersionString"];
   
    // 当前应用版本号码   int类型
    NSString *appCurVersionNum = [infoDictionary1 objectForKey:@"CFBundleVersion"];
   
    
    
}
@end
